import React, { Component } from 'react';
import {
    StyleSheet,
    View,
    Image
} from 'react-native';
import BaseComponentF from './BaseComponentF';
import TopBar from '../component/TopBar';
/**
 * 自定义导航栏demo
 */
class TopBarDemo extends React.Component {
    render() {
        return (
            <View style={Style.container}>
                <TopBar title='工作台工作台工作台工作台工作台工作台' showBack={true} onPress={() => { alert('back') }} />
            </View>

        );
    }
}
const Style = StyleSheet.create({
    container: {
        flex: 1,
    },
    img: {
        width: 45,
        height: 45,
        resizeMode: Image.resizeMode.center,
    }
});

export default BaseComponentF(TopBarDemo);
